package cn.edu.huas.shopping.pojo;

public class ResponseResult<T> {
    private Boolean flag;//标准成功状态
    private String message;//消息
    private Integer code;//业务编码
    private T data;//实际数据

    public ResponseResult() {
    }

    public ResponseResult(Boolean flag, String message, Integer code) {
        this.flag = flag;
        this.message = message;
        this.code = code;
    }

    public ResponseResult(Boolean flag, String message, Integer code, T data) {
        this.flag = flag;
        this.message = message;
        this.code = code;
        this.data = data;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
